import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/view/bussine_button.dart';
import '../pages/deliver_order/logic.dart';

class DeliverOrderButtons extends StatelessWidget {
  DeliverOrderButtons({super.key});

  final DeliverOrderLogic _logic = Get.find<DeliverOrderLogic>();
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.only(left: 20, right: 20, top: 20, bottom: 40),
      child: Row(
        children: [
          Expanded(
            child: MGButton(
              title: "重扫",
              buttonBackColor: MGColors.backColor,
              buttonAction: _logic.reset,
            ),
          ),
          SizedBox(width: 20),
          Expanded(
            child: MGButton(
              title: "投递",
              buttonAction: _logic.deliver,
            ),
          )
        ],
      ),
    );
  }
}
